<?php

class CheckoutFormWidget extends CWidget {

    public $visible = true;
    public $type = 0;
    public $form_change_order_url = '';

    public function init() {
        
    }

    public function run() {
        if ($this->visible) {
            $this->renderContent();
        }
    }

    protected function renderContent() {
        $list_form = CheckoutForm::GetListForm();
        $this->render('cmswidgets.views.shopping.checkout_form_list_widget', array('title' => t('cms', 'Checkout Form'), 'list_form' => $list_form));
    }

}
